/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ch02;

/**
 *
 * @author osa
 */
public class Main {
    public static void main(String[] args) {
        RadioBase r = new RadioBase();
        r.turnOn();
        System.out.println("Power ON is " + r.getTurn());
        r.volumeUp(20);
        System.out.println("Volume is " + r.getVolume());
        r.volumeDown(10);
        System.out.println("Volume is " + r.getVolume());

        r.searchChannels();
        r.checkAllChannels();

        r.adjustFrequency(1, 1071);
        r.checkAllChannels();

    }
}
